#pragma once

using namespace swegl;

class myIDirect3DIndexBuffer9 : public IDirect3DIndexBuffer9
{
public:
    SWEGL_DXWRAPPER_DECLARE_IUNKNOWN(myIDirect3DIndexBuffer9, IDirect3DIndexBuffer9);
	SWEGL_DXWRAPPER_DECLARE_RESOURCE(myIDirect3DIndexBuffer9, IDirect3DIndexBuffer9);

	HRESULT __stdcall Lock(UINT OffsetToLock,UINT SizeToLock,void** ppbData,DWORD Flags);
    HRESULT __stdcall Unlock();
    HRESULT __stdcall GetDesc(D3DINDEXBUFFER_DESC *pDesc);

	myIDirect3DIndexBuffer9(swegl::IndexBuffer *ib);
	~myIDirect3DIndexBuffer9();

//private:
	swegl::IndexBuffer *m_ib;
};
